package cn.amebius.simpledocker.entity.po;

import cn.amebius.simpledocker.exception.DataErrorException;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * tb_group的Po类
 * @author 阿伟
 * @date 2023/7/28 18:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GroupPo extends BasePo{

    private String name;

    private String description;

    public static void check(GroupPo gp) {
        if (gp == null || gp.name.isEmpty()|| gp.description.isEmpty()) {
            throw  new DataErrorException("数据异常: 小组丢失");
        }
        BasePo.check(gp);
    }

}
